package com.krain.ddbb.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by 胡亚敏 on 2016/3/21.
 */
public class Wx implements Parcelable {

    private String appId;
    private String partnerId;
    private String prepayId;
    private String nonceStr;
    private long timeStamp;
    private String packageValue;
    private String sign;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getPartnerId() {
        return partnerId;
    }

    public void setPartnerId(String partnerId) {
        this.partnerId = partnerId;
    }

    public String getPrepayId() {
        return prepayId;
    }

    public void setPrepayId(String prepayId) {
        this.prepayId = prepayId;
    }

    public String getNonceStr() {
        return nonceStr;
    }

    public void setNonceStr(String nonceStr) {
        this.nonceStr = nonceStr;
    }

    public long getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(long timeStamp) {
        this.timeStamp = timeStamp;
    }

    public String getPackageValue() {
        return packageValue;
    }

    public void setPackageValue(String packageValue) {
        this.packageValue = packageValue;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.appId);
        dest.writeString(this.partnerId);
        dest.writeString(this.prepayId);
        dest.writeString(this.nonceStr);
        dest.writeLong(this.timeStamp);
        dest.writeString(this.packageValue);
        dest.writeString(this.sign);
    }

    public Wx() {
    }

    protected Wx(Parcel in) {
        this.appId = in.readString();
        this.partnerId = in.readString();
        this.prepayId = in.readString();
        this.nonceStr = in.readString();
        this.timeStamp = in.readLong();
        this.packageValue = in.readString();
        this.sign = in.readString();
    }

    public static final Parcelable.Creator<Wx> CREATOR = new Parcelable.Creator<Wx>() {
        public Wx createFromParcel(Parcel source) {
            return new Wx(source);
        }

        public Wx[] newArray(int size) {
            return new Wx[size];
        }
    };
}
